* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: '江城律动黑';
    font-size: 16px;
}

.container {
    position: relative;
    display: flex;
    width: 700px;
    height: 150px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, red 20%, red 80%, transparent);
    background-color: aqua;
    cursor: pointer;
}

.container div {
    position: absolute;
    width: 700px;
    white-space: nowrap;
    left: 0;
}

.container div:nth-of-type(1) {
    top: 20px;
}

.container div:nth-of-type(2) {
    top: 60px;
}

.container div:nth-of-type(3) {
    top: 100px;
}

.container span {
    display: inline-block;
    white-space: nowrap;
    letter-spacing: .2em;
    padding: 5px 10px;
    margin: 0 10px;
    background-color: white;
    border-radius: 10px;
}
